package com.token.wsset.soap;

/**
 * @author chenjianxiong 2020/4/21
 */
public enum ActionTypeEnum {
    LOADFLOW(1,"加载流程"),
    GETPATH(2,"读取环节办理人"),
    GETRETRUNPATH(3,"读取退回办理人"),
    SUBMIT(10,"提交"),
    RETURN(11,"退回"),
    BACK(12,"取回"),
    OVER(13,"作废"),
    TRANSMIT(14,"转审"),
    CALLHQ(15,"创建组织会签"),
    CALLHS(16,"创建组织会审"),
    CC(17,"抄送"),
    URG(18,"催办"),
    TOFLOW(20,"切换流程"),
    APPROVEPROCESS(31,"读取审批数据"),
    OPINIONS(32,"读取办理意见"),
    FLOWAPPROVELOG(33,"读取流转记录");
    private final int id;
    private final String name;
    ActionTypeEnum(int id, String name) {
        this.id = id;
        this.name = name;
    }

    public int getId() {
        return id;
    }

    public String getName(){
        return name;
    }

    public static ActionTypeEnum getTypeByValue(int value){
        for (ActionTypeEnum enums : ActionTypeEnum.values()) {
            if (enums.getId()==value) {
                return enums;
            }
        }
        return null;
    }
}
